<?php
$isadmin=1;
include "../../comm/tuaninc.php";
include('../check.php');

if($_POST['fun']=='gengxin'){
    $cityid=$_POST['cityid'];
    $field=$_POST['field'];
    $val=$_POST['val'];

    $sql="update ".$duoduo->BIAOTOU."city set $field='$val' where cityid='$cityid'";
    $duoduo->query($sql);
}

if($_GET['mallid']>0 && $_GET['api_city']){
    $arr = $duoduo->get_xml($_GET['api_city']);
    $duoduo->get_tuan_city($arr,$_GET['mallid'],$_GET['rule']);
	echo "ok";
}
else{
    echo "miss";
}
